package com.imooc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import tk.mybatis.spring.annotation.MapperScan;

/**
 * @ClassName Application
 * @Description TODO
 * @Author xuhang1
 * @Data 2020/4/27 13:58
 * @Version 1.0
 **/
@SpringBootApplication
// 扫描mybatis通用mapper包
@MapperScan(basePackages = "com.imooc.mapper")
// 扫描所有包，及其相关组件
@ComponentScan(basePackages = {"com.imooc","org.n3r.idworker"})
@EnableScheduling       // 开启定时任务
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }
}
